package chapter2.No2_1_synchronized同步方法.dSynchronized方法与锁对象.demo2;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/11 0011
 */
public class ThreadA extends Thread {

    TestObject obj;

    public ThreadA(TestObject obj) {
        this.obj = obj;
    }

    @Override
    public void run() {
        obj.methodA();
    }
}
